import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    redirect:'/home',
    children:[{
      path:'/home',
      component:()=> import('@/views/index')
    },{
      path:'/video',
      component:()=> import('@/views/videoTemplate/videoTemplate')
    },{
      path:'/vip',
      component:()=> import('@/views/Vip/Vip')
    }]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
